package com.softeem.music_sys.comm;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @version 1.0
 * @Author cn
 * @Date 2025/11/10 09:57
 * @Description
 */
@Accessors(chain = true)
@Data
public class Result {
    private Integer code;
    private String message;
    private boolean success;
    private  Object data;
    public static Result success(){
        return new Result().setSuccess(true).setCode(200);
    }

    public static Result fail( String message){
        return new Result().setSuccess(false).setMessage(message).setCode(500);
    }

}